/* GSStocksBean.java
 *
 * Project/Product: JZCG-XMBUS
 *
 * Modify Information:
 * =============================================================================
 *   Author	Date       Description
 *   ----------	---------- ---------------------------------------------------
 *   peng.ning	2008-8-26	First release
 *
 * Licensed Materials - Property of APEP
 * =============================================================================
 *    (C) COPYRIGHT Shanghai Auto Mart E-Procurement Co., Ltd. 2007 - 2008
 *    All Rights Reserved.
 *
 *    This software is the confidential and proprietary information of
 *    Shanghai Auto Mart E-Procurement Co., Ltd. ("Confidential Information").
 *    You shall not disclose such Confidential Information and shall use it only
 *    in accordance with the terms of the license agreement you entered into 
 *    with Shanghai Auto Mart E-Procurement Co., Ltd.
 *
 * Noties:
 * =============================================================================
 * 
 */

package com.hitrust.gs.bean;

import java.sql.ResultSet;
import java.sql.SQLException;

import com.hitrust.gs.service.GSBaseBean;

public class GSStocksBean implements GSBaseBean {

    /* (non-Javadoc)
     * @see com.hitrust.gs.service.GSBaseBean#process(java.sql.ResultSet)
     */
    private String gs_stocks_id;
    private String gs_workcorp_id;
    private String gs_workcorp_name;
    private String gs_stocks_person;
    private String gs_stocks_dept;
    private double gs_stocks_total;
    private String gs_stocks_state;
    private String gs_stocks_date;
    private String gs_stocks_remark;
    private String gs_operator_id;
    private String gs_operator_date;
    private String gs_shipment_id;

    /**
     * @return the gs_shipment_id
     */
    public String getGs_shipment_id() {
        return this.gs_shipment_id;
    }

    /**
     * @param aGs_shipment_id the gs_shipment_id to set
     */
    public void setGs_shipment_id(String aGs_shipment_id) {
        this.gs_shipment_id = aGs_shipment_id;
    }

    /**
     * @return the gs_stocks_id
     */
    public String getGs_stocks_id() {
        return this.gs_stocks_id;
    }

    /**
     * @param aGs_stocks_id the gs_stocks_id to set
     */
    public void setGs_stocks_id(String aGs_stocks_id) {
        this.gs_stocks_id = aGs_stocks_id;
    }

    /**
     * @return the gs_workcorp_id
     */
    public String getGs_workcorp_id() {
        return this.gs_workcorp_id;
    }

    /**
     * @param aGs_workcorp_id the gs_workcorp_id to set
     */
    public void setGs_workcorp_id(String aGs_workcorp_id) {
        this.gs_workcorp_id = aGs_workcorp_id;
    }

    /**
     * @return the gs_stocks_person
     */
    public String getGs_stocks_person() {
        return this.gs_stocks_person;
    }

    /**
     * @param aGs_stocks_person the gs_stocks_person to set
     */
    public void setGs_stocks_person(String aGs_stocks_person) {
        this.gs_stocks_person = aGs_stocks_person;
    }

    /**
     * @return the gs_stocks_dept
     */
    public String getGs_stocks_dept() {
        return this.gs_stocks_dept;
    }

    /**
     * @param aGs_stocks_dept the gs_stocks_dept to set
     */
    public void setGs_stocks_dept(String aGs_stocks_dept) {
        this.gs_stocks_dept = aGs_stocks_dept;
    }

    /**
     * @return the gs_stocks_total
     */
    public double getGs_stocks_total() {
        return this.gs_stocks_total;
    }

    /**
     * @param aGs_stocks_total the gs_stocks_total to set
     */
    public void setGs_stocks_total(double aGs_stocks_total) {
        this.gs_stocks_total = aGs_stocks_total;
    }

    /**
     * @return the gs_stocks_state
     */
    public String getGs_stocks_state() {
        return this.gs_stocks_state;
    }

    /**
     * @param aGs_stocks_state the gs_stocks_state to set
     */
    public void setGs_stocks_state(String aGs_stocks_state) {
        this.gs_stocks_state = aGs_stocks_state;
    }

    /**
     * @return the gs_stocks_date
     */
    public String getGs_stocks_date() {
        return this.gs_stocks_date;
    }

    /**
     * @param aGs_stocks_date the gs_stocks_date to set
     */
    public void setGs_stocks_date(String aGs_stocks_date) {
        this.gs_stocks_date = aGs_stocks_date;
    }

    /**
     * @return the gs_stocks_remark
     */
    public String getGs_stocks_remark() {
        return this.gs_stocks_remark;
    }

    /**
     * @param aGs_stocks_remark the gs_stocks_remark to set
     */
    public void setGs_stocks_remark(String aGs_stocks_remark) {
        this.gs_stocks_remark = aGs_stocks_remark;
    }

    /**
     * @return the gs_operator_id
     */
    public String getGs_operator_id() {
        return this.gs_operator_id;
    }

    /**
     * @param aGs_operator_id the gs_operator_id to set
     */
    public void setGs_operator_id(String aGs_operator_id) {
        this.gs_operator_id = aGs_operator_id;
    }

    /**
     * @return the gs_operator_date
     */
    public String getGs_operator_date() {
        return this.gs_operator_date;
    }

    /**
     * @param aGs_operator_date the gs_operator_date to set
     */
    public void setGs_operator_date(String aGs_operator_date) {
        this.gs_operator_date = aGs_operator_date;
    }

    public Object process(ResultSet aResultSet) throws SQLException {
        // TODO Auto-generated method stub
        GSStocksBean sbean=new GSStocksBean();
        sbean.gs_stocks_id=aResultSet.getString("gs_stocks_id")==null?"":aResultSet.getString("gs_stocks_id").trim();
        sbean.gs_workcorp_id=aResultSet.getString("gs_workcorp_id")==null?"":aResultSet.getString("gs_workcorp_id").trim();
        sbean.gs_workcorp_name=aResultSet.getString("gs_org_name")==null?"":aResultSet.getString("gs_org_name").trim();
        sbean.gs_stocks_person=aResultSet.getString("gs_stocks_person")==null?"":aResultSet.getString("gs_stocks_person").trim();
        sbean.gs_stocks_dept=aResultSet.getString("gs_stocks_dept")==null?"":aResultSet.getString("gs_stocks_dept").trim();
        sbean.gs_stocks_total=aResultSet.getDouble("gs_stocks_total")==0?0.00:aResultSet.getDouble("gs_stocks_total");
        sbean.gs_stocks_state=aResultSet.getString("gs_stocks_state")==null?"0":aResultSet.getString("gs_stocks_state").trim();
        sbean.gs_stocks_date=aResultSet.getString("gs_stocks_date")==null?"":aResultSet.getString("gs_stocks_date").trim();
        sbean.gs_stocks_remark=aResultSet.getString("gs_stocks_remark")==null?"":aResultSet.getString("gs_stocks_remark");
        sbean.gs_operator_id=aResultSet.getString("gs_operator_id")==null?"":aResultSet.getString("gs_operator_id").trim();
        sbean.gs_operator_date=aResultSet.getString("gs_operator_date")==null?"":aResultSet.getString("gs_operator_date").trim();
        sbean.gs_shipment_id=aResultSet.getString("gs_shipment_id")==null?"":aResultSet.getString("gs_shipment_id").trim();
        return sbean;
    }

    /**
     * @return the gs_workcorp_name
     */
    public String getGs_workcorp_name() {
        return this.gs_workcorp_name;
    }

    /**
     * @param aGs_workcorp_name the gs_workcorp_name to set
     */
    public void setGs_workcorp_name(String aGs_workcorp_name) {
        this.gs_workcorp_name = aGs_workcorp_name;
    }

}
